import request from '@/utils/request'

// 保存面试信息
export function saveIntvInfo(data: object) {
  return request({
    url: '/student/bookInterview/saveInfo',
    method: 'post',
    data: data
  })
}

// 获取面试信息
export function getIntvInfo(intvId: number) {
  return request({
    url: '/student/bookInterview/getInfo/' + intvId,
    method: 'get'
  })
}

export function getIntvInfoByDate(intvDate: Date) {
  return request({
    url: '/student/bookInterview/getIntvInfoByDate/' + intvDate,
    method: 'get'
  })
}

export function clearByIntvId(intvId: number) {
  return request({
    url: '/student/bookInterview/clearByIntvId/' + intvId,
    method: 'delete'
  })
}
